From 9bfaf6eef47f37e4a6641f5c90b11998bd636f9c Mon Sep 17 00:00:00 2001 From: "cl349@freefall.cl.cam.ac.uk" Date: Mon, 26 Jul 2004 14:42:27 +0000 Subject: [PATCH] bitkeeper revision 1.1108.15.1 (41051853Nw9Dyat8lzE1v6Ex4on1YA) Fix loading of kernel images to addresses not aligned on pagetable boundaries. --- xen/arch/x86/domain.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/xen/arch/x86/domain.c b/xen/arch/x86/domain.c index 55293ed973..e58c74d164 100644 --- a/xen/arch/x86/domain.c +++ b/xen/arch/x86/domain.c @@ -695,6 +695,8 @@ int construct_dom0(struct domain *p, mpt_alloc += PAGE_SIZE; *l2tab++ = mk_l2_pgentry((unsigned long)l1start | L2_PROT); clear_page(l1tab); + if ( count == 0 ) + l1tab += l1_table_offset(v_start); } *l1tab++ = mk_l1_pgentry((mfn << PAGE_SHIFT) | L1_PROT); -- 2.30.2